Querying sensor data stored as binary decision diagrams

ABSTRACT

According to certain embodiments, a search query for a search of samples of sensor data is received. The search query indicates one or more requested values of one or more data parameters. The samples are represented by a characteristic function indicating whether a given binary representation represents a sample. A query function representing the one or more requested values is formulated. The query function and the characteristic function are used to identify one or more samples that have the one or more requested values.

TECHNICAL FIELD

This invention relates generally to the field of data systems and more specifically to querying sensor data stored as binary decision diagrams.

BACKGROUND

Sensors may be used in different situations (such as medical, environment, and other situations) to take measurements over time. In certain cases, the measurements may yield a relatively large volume of data, which may be difficult to analyze. Techniques may be used to process (such as store, utilize, and/or analyze) large volumes of data.

SUMMARY OF THE DISCLOSURE

In accordance with the present invention, disadvantages and problems associated with previous techniques for processing data may be reduced or eliminated.

According to certain embodiments, a search query for a search of samples of sensor data is received. The search query indicates one or more requested values of one or more data parameters. The samples are represented by a characteristic function indicating whether a given binary representation represents a sample. A query function representing the one or more requested values is formulated. The query function and the characteristic function are used to identify one or more samples that have the one or more requested values.

Certain embodiments of the invention may provide one or more technical advantages. A technical advantage of one embodiment may be that sensor data may be represented by a characteristic function that can be stored as a binary decision diagram. Another technical advantage of one embodiment may be that a search query may be represented by a query function. The search query and the characteristic function may be used to obtain sensor values of the sensor data that satisfy the search query.

Another technical advantage of one embodiment may be that model sensor data for a particular annotation may be represented by a particular annotated model characteristic function. The annotated model characteristic function may be combined with a characteristic function to annotate the characteristic function with the annotation. Another technical advantage of one embodiment may be that Boolean functions may be transformed to arithmetic functions. Hash codes may be calculated from the arithmetic functions. If the hash codes are equal, then the Boolean functions may be designated as equivalent.

Certain embodiments of the invention may include none, some, or all of the above technical advantages. One or more other technical advantages may be readily apparent to one skilled in the art from the figures, descriptions, and claims included herein.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention and its features and advantages, reference is now made to the following description, taken in conjunction with the accompanying drawings, in which:

FIG. 1 illustrates an example of system that may be used to process sensor data;

FIG. 2 illustrates an example of a method for representing sensor data by characteristic functions;

FIG. 3 illustrates an example of a method for querying sensor data represented by characteristic functions;

FIG. 4 illustrates an example of a method for annotating characteristic functions; and

FIG. 5 illustrates an example of a method for determining whether characteristic functions are equivalent.

DETAILED DESCRIPTION OF THE DRAWINGS

Embodiments of the present invention and its advantages are best understood by referring to FIGS. 1 through 5 of the drawings, like numerals being used for like and corresponding parts of the various drawings.

FIG. 1 illustrates an example of system 10 that may be used to process sensor data. In certain embodiments, system 10 may represent sensor data by a characteristic function that can be stored as a binary decision diagram. In certain embodiments, system 10 may represent a search query by a query function. The search query and the characteristic function may be used to obtain sensor values of the sensor data that satisfy the search query.

In certain embodiments, system 10 may represent model sensor data for a particular annotation by a particular annotated model characteristic function. The annotated model characteristic function may be combined with a characteristic function to annotate the characteristic function with the annotation. In certain embodiments, system 10 may transform Boolean functions (such as characteristic functions) to arithmetic functions. Hash codes may be calculated from the arithmetic functions. If the hash codes are equal, then the Boolean functions may be designated as equivalent.

In the illustrated embodiment, system 10 includes an interface (IF) 20, a computing system 22, a memory 24, and a sensor system 28 coupled as shown. Computing system 22 includes one or more processors 29. Logic 26 includes a binary decision diagram (BDD) generator 30, a query engine 32, a model engine 34, and a signature engine 36, and may be stored by computing system 22 and/or memory 24. Memory 24 stores sensor data 40 and a BDD library 41. Sensor system 28 includes one or more sensors 50.

In certain embodiments, sensors 50 of sensor system 28 measure features (such as medical or environmental features) to yield measurements (such as medical or environmental measurements), which are sent to computing system 22. A measurement is typically expressed as a numerical value.

Examples of sensors 50 may include medical, environmental, and/or other suitable sensors. Medical sensors may be used to measure one or more features of a patient's medical state. Medical sensors may include medical monitors, medical laboratory equipment, therapeutic equipment, medical imaging machines, and/or other medical sensor. Examples of medical sensors include electrocardiogram (ECG) sensors, blood pressure sensors, and/or pulse oximetry sensors.

An electrocardiogram sensor records electrical activity of the heart over time through skin electrodes. An electrocardiogram sensor may output tracings of heartbeats. A tracing of a normal heartbeat typically includes a P-wave, a QRX complex (that includes an R-wave), and a T-wave. Samples may record any suitable features of the tracings. For example, samples may record intervals between features of consecutive heartbeats, such as the interval between two consecutive R-waves. The interval may be used to extract information about heart rate and its variability.

A blood pressure sensor may use a sphygmomanometer to measure blood pressure. The measurement may include systolic and/or diastolic values in units of millimeters of mercury (mmHg). In certain instances, blood pressure may be measured at regular intervals throughout the day and night.

A pulse oximetry sensor may be used to measure the oxygenation of hemoglobin. A pulse oximeter may be placed on the skin (such as a fingertip) and transmit a red and an infrared wave. The absorption of the waves may be measured to determine oxygen saturation. The pulse oximeter may output the oxygen saturation as a percentage from zero percent to ninety-nine percent.

Environmental sensors may measure an environmental feature, for example, such as geographic location, air pressure, elevation, and/or temperature. Examples of environmental sensors include a Global Positioning System (GPS) that determines location, a barometer that measures air pressure, an altimeter that measures elevation, and a thermometer that measures temperature.

Sensor data 40 may include any suitable information. In certain embodiments, sensor data 40 records measurements taken by one or more sensors 50. Sensor data 40 may include samples that may have any suitable format. In certain embodiments, the format of the samples may be a tuple (or ordered set) that has one or more data parameters, and a particular sample may be a tuple of one or more values for the one or more data parameters. For example, a tuple format (t, p) may have data parameters time t and pressure p, and a particular sample (t0, p0) may have values pressure p0 measured at time t0.

The tuple format may include any suitable data parameters, such as one or more sensor parameters and/or one or more test parameters. A sensor parameter may correspond to one or more sensors 50, and a sensor value may record one or more measurements taken by one or more sensors 50. For example, a sensor value may record a measurement taken by a sensor 50. A test parameter may correspond to a factor that describes a temporal, spatial, and/or environmental feature of the measurement process, and a test value may record the value of the feature when the measurements are taken. For example, the parameter may be time, and the parameter value may record a particular time at which measurements are taken.

Examples of temporal features include time, which may be expressed as an absolute time (for example, 2:00 PM, May 25, 2010) or as relative time (for example, time elapsed from a starting time or time remaining until an ending time). Examples of spatial features include location, such as geographical location (which may include longitude, latitude, and/or altitude), location on a body (for example, a human body), and type of location (for example, rural or urban). Examples of environmental features describe physical characteristics of an environment, such as temperature (for example, atmospheric temperature or body temperature).

Model sensor data 40 describes sensor data that may be used to annotate sensor data obtained from measurements in order to categorize the data. For example, certain model sensor data may be categorized and annotated with a “normal” (or similar) annotation, while other sensor data may be categorized and annotated with an “abnormal” (or similar) annotation. Sensor data obtained from measurements that match the normal model sensor data may be categorized as normal, while measured sensor data that match abnormal model sensor data may be categorized as abnormal.

Any suitable annotation may be used. In certain embodiments, medical annotations that may be used to categorize medical sensor data. Examples of medical annotations may include a “normal” annotation for normal sensor data and an “abnormal” annotation for abnormal sensor data. Other examples of medical annotations may include annotations for particular diseases, conditions, symptoms, severity, and/or other category of medical sensor data.

In certain embodiments, environmental annotations that may be used to categorize environmental sensor data. Examples of environmental annotations may include a “normal” annotation for normal sensor data and an “abnormal” annotation for abnormal sensor data. Other examples of environmental annotations may include annotations for particular weather conditions, geographical features, social conditions, and/or other category of environmental sensor data.

Model sensor data includes model samples. A model sample comprises a tuple of one or more model sensor values. A model sensor value represents one or more measurements that could have been taken by one or more sensors. The model samples may be annotated with the annotation to indicate the category to which it belongs.

Binary decision diagram library 41 stores binary decision diagrams. In certain embodiments, a binary decision diagram (BDD) is a rooted directed acyclic graph (DAG) that may be used to represent a Boolean function f. A BDD includes nodes, such as non-terminal (or decision) nodes and terminal nodes, where terminal nodes include root nodes. A non-terminal node corresponds to a sub-function f and is labeled by a Boolean variable v=x_(i). A non-terminal node has an outgoing 1-edge and an outgoing 0-edge pointing to child nodes. A 1-edge points to the sub-BDD that represents function v·f, and a 0-edge 88 points to the sub-BDD that represents function v·ƒ. In other words, a 1-edge represents an assignment of v to 1, and a 0-edge represents an assignment of v to 0. Terminal nodes include a 0-terminal and a 1-terminal that represent Boolean functions 0 and 1, respectively.

A path from the root node to the 1-terminal represents a set of variable assignments setting the represented Boolean function to 1. A path from the root node to the 0-terminal represents a set of variable assignments setting the represented Boolean function to 0.

In certain embodiments, a BDD is stripped of redundant decision nodes and subgraph isomorphisms. In certain embodiments, an ordered binary decision diagram (OBDD) is a BDD where all paths from the root node to the terminal nodes examine variables in the same order. OBDDs may allow for canonical representations. Other examples of BDDs include reduced ordered BDDs (ROBDDs), partitioned ordered binary decision diagrams (POBDDs), zero-suppressed decision diagrams (ZDDs), nano binary decision diagrams (nanoDDs), zero-suppressed nano binary decision diagrams (nanoZDDs), other suitable binary decision diagrams, and/or a combination of any of the preceding. In a ROBDD, isomorphic subgraphs are not present, and the order of the variables from the root node of the BDD to a terminal node are the same for all paths. In a ZDD, a node is excluded if the node is a negative literal. In other RBDDs, a node is excluded if both edges of the node point to the same node. Examples of the other types of BDDs are described in more detail below.

In certain embodiments, node structure of BDD library 41 includes any suitable information, such as information about each binary variable and indices to the nodes that correspond to the two possible evaluations of the variable. BDD library 41 may also include information about complementation of one of the indices.

In certain embodiments, BDD library 41 may store the information compactly. In certain embodiments, BDD library 41 may maintain the indices and variable identifiers as a function of the size of the BDD. For example, a BDD may have at most k nodes throughout some or all manipulations performed by BDD library 41. Each vertex of the BDD may be labeled with one of at most v variable identifiers.

The indices to nodes therefore require at most ┌log(v)┐ bits to index any variable. The node therefore requires only 2·┌log(k)┐+┌log(v)┐ bits. In addition, two bits may be reserved, one bit used to identify complemented edges and another bit used as a general mark bit used during garbage collection. Values for v and k may be determined in any suitable manner. As an example, a user may specify v and a default k value may be used initially. When the address space allowed by the default k value is exhausted, the k value may be increased and the node table may be rebuilt. As another example, maximum values for v and k may be assumed.

In certain embodiments, BDD generator 30 accesses a set of samples of sensor data that records measurements taken by one or more sensors. BDD generator 30 represents each sample as a minterm to yield a set of minterms. BDD generator 30 generates a characteristic function from the minterms, the characteristic function indicating whether a given minterm is a member of the set of minterms.

In certain embodiments, a characteristic function f^(S) of a set S indicates whether a given natural (represented by a minterm) is a member of a set S. In certain embodiments, characteristic function f^(S)({right arrow over (x)}) of a set S⊂IN may be the Boolean function such that f^(S)({right arrow over (x)})=1 iff {right arrow over (x)} is the binary representation of an element of S. For example, for S={1,3}, f(0,0)=f(1,0)=0 and f(0,1)=f(1,1)=1.

A minterm is a logical expression of n variables that employs only the complement operator and the conjunction operator. For a Boolean function of n variables, a minterm is a product term in which each of the n variables appears once, either in a complemented or uncomplemented form.

In certain embodiments, query engine 32 receives a search query for a search of a set of samples of sensor data. The search query indicates one or more requested values of one or more parameters. The samples are represented by a characteristic function indicating whether a given binary representation represents a sample of the set of samples. Query engine 32 formulates a query function representing the requested values. Query engine 32 uses the query function and the characteristic function to identify one or more samples that have the one or more requested values.

In certain embodiments, model engine 34 accesses one or more sets of model samples of model sensor data. Each set comprises model samples for a corresponding annotation of one or more annotations. Model engine 34 performs the following for each set to yield one or more annotated model characteristic functions: represent each model sample of the each set as a model minterm to yield a set of model minterms; generate a model characteristic function from the model minterms, the characteristic function indicating whether a given minterm is a member of the set of model minterms; and annotate the model characteristic function. Model engine 34 generates a general model characteristic function from the annotated model characteristic functions.

In certain embodiments, signature engine 34 receives a first Boolean function and a second Boolean function, such as first and second characteristic functions. Signature engine 34 transforms the first and second Boolean functions to yield first and second arithmetic functions, respectively. Signature engine 34 provides the same input to the first and second arithmetic functions to calculate first and second hash codes (or “signatures”), respectively. If the first hash code equals the second hash code, signature engine 34 designates the first and second Boolean functions as equivalent. Otherwise, signature engine 34 designates that the first and second Boolean functions as not equivalent.

In certain embodiments, interface 20 receives input from, for example, a user, using any suitable input device and communicates the input to computing system 22. Interface 20 receives output from computing system 22 and communicates the output to computing system 22 using any suitable output device.

FIG. 2 illustrates an example of a method for representing sensor data by characteristic functions. The method may be performed by BDD generator 30. In the method, sensor data 40 is accessed at step 110. Sensor data 40 records measurements taken by sensors 50. For example, sensor data 40 may record measurements taken by a first sensor 50 with a frequency of 1 Hertz and a second sensor 50 with a frequency of 60 Hertz.

A set S of samples is generated from sensor data 40 at step 114. In certain embodiments, each sample comprises a tuple of one or more sensor values. Each sensor value records one or more measurements taken by one or more sensors at a test value of a test parameter. The test parameter may represent time, temperature, or location. The sample tuple may also include the test value.

Set S may be generated in any suitable manner. In certain embodiments, time may be quantized according to the sampling frequencies of sensors 50 and/or desired accuracy. For each time t, set S of sensor values is obtained to yield S={(t_(i),q_(i) ¹, . . . , q_(i) ^(k))}, where q_(i) ^(j) is the quantized input from sensor j at time instance i.

Each sample is represented as a minterm at step 118. The sample may be represented as a minterm in any suitable manner. In certain embodiments, one or more variables are allocated to each data value (for example, a test or sensor value) of a sample. For example, Nt (for example, Nt=32) variables may be allocated for time, Ns1 (for example, Ns1=8) variables for the first sensor, and Ns2 (for example, Ns2=8) variables for the second sensor. In the example, the sample corresponds to a minterm of the form t₁ . . . t_(Nt)·s₁ ¹ . . . s_(Ns1) ¹ . . . s₁ ² . . . s_(Ns2) ², for example, t₁t₂ . . . t₃₂·s₁ ¹ . . . s₈ ¹ . . . s₁ ² . . . s₈ ².

Each sensor value is expressed as a binary number using the allocated variables. In the example, a subset of S may be {(1,70,3), (2,70,3), (3,70,4)}. The related minterms are:

-   -   00000000000000000000000000000001•01000110•00000011,         00000000000000000000000000000010•01000110•00000011,         00000000000000000000000000000011•01000110•00000100.

Characteristic function f^(S) is generated from the minterms at step 122. Characteristic function f^(S) indicates whether a given minterm is a member of the set of minterms. Characteristic function f^(S) may be generated from the minterms in any suitable manner. In certain embodiments, a logical operation may be applied to the minterms to generate characteristic function f^(S). A logical operation may be one of or a logical combination of any two or more of the following: AND, OR, XOR, and NOT. In certain embodiments, a logical OR operation may be applied to the minterms to generate characteristic function f^(S). Applying a logical OR operation to a number of operands yields the logical OR of the operands. The corresponding characteristic function f^(S)({right arrow over (x)}; {right arrow over (s)}¹; {right arrow over (s)}²) is the logical OR of all minterms.

There may be next samples of sensor data 40 at step 126. For example, there may be newer, or more recent, samples in sensor data 40. If there are next samples, the method returns to step 114 to generate a next set S of the next samples. If there are no next samples, the method proceeds to step 130.

Characteristic function f^(S) is updated using the next samples at step 130. Characteristic function f^(S) may be updated in any suitable manner. In certain embodiments, steps similar to steps 114 through 122 may be performed. In the embodiments, a set of next samples may be generated. Each next sample may be represented as a next minterm. Characteristic function f^(S) may be updated using the next minterms. For example, a logical operation (such as a logical OR operation) may be applied to characteristic function f^(S) and the next minterms to yield an updated characteristic function f^(S).

Characteristic function f^(S) is reported at step 134. Characteristic function f^(S) may be reported in any suitable manner. For example, BDD generator 30 may facilitate display of characteristic function f^(S) at interface 20.

FIG. 3 illustrates an example of a method for querying sensor data represented by characteristic functions. The method may be performed by BDD generator 30. In the method, a search query is received at step 210. The search query requests a search of a set of samples of sensor data 40 and may have any suitable format. In certain embodiments, the search query may indicate one or more requested values of one or more data parameters, and may request retrieval of samples that satisfy the requested values. A data parameter may be a sensor parameter that corresponds to a sensor and/or a test parameter that describes, for example, a spatial, temporal, and/or geographical feature. The samples of sensor data 40 may be represented by a characteristic function indicating whether a given binary representation represents a sample of the set of samples.

Query function f_(R) representing the requested values is formulated at step 214. Query function f_(R) may be used to identify samples (represented by a characteristic function) that have the requested values. Query function f_(R) may be formulated in any suitable manner. In certain embodiments, each requested value may be expressed as a requested minterm, and a range query function f_(R) may be formulated from the requested minterms. For example, if the requested values are t=128 through 255, then query function ƒ_(R)({right arrow over (t)};{right arrow over (s)}¹; . . . ; {right arrow over (s)}^(N))= t ₃₁ t ₃₀ . . . t ₈t₇.

As an another example, the following method may be used to generate a BDD of a Boolean function TH_(value)(x) that yields 1 when the number that is represented in the vector of binary variables x is larger than or equal to value. For example, TH_(value)(X) may be the following:

TH₅(0,0,0)=0

TH₅(0,0,1)=0

TH₅(0,1,0)=0

TH₅(0,1,1)=0

TH₅(1,0,0)=0

TH₅(1,0,1)=1

TH₅(1,1,0)=1

TH₅(1,1,1)=1

According to the method, a BDD of a Boolean function TH_(value)(x) may be generated by:

BDD threshold(value, bits)  {   result = 1   while(bits>0)    {     bits = bits − 1     if(value mod 2 = 1)       result = result AND var_(bits)     else       if(result < > 1)       result = result OR var_(bits)     value = value / 2    }   return result  }

The generated BDD may be used to count the number of instances where the number that is represented in the vector of binary variables x is larger than or equal to value. As another example, if samples where sensor j has values between A and B are requested, the following query function may be used: ƒ_(R)({right arrow over (t)};{right arrow over (s)}¹; . . . {right arrow over (s)}^(N))=TH_({A})({right arrow over (s)}^(j)) AND TH _({B+1})({right arrow over (s)}^(j)). As another example, if the requested values are all sensor values, the query function may be blank.

The query function and the characteristic function are used at step 218 to yield search results. The query function and the characteristic function may be used in any suitable manner. In certain embodiments, the query function and the characteristic function may be logically combined by applying a logical operation (such as a logical AND operation) to the functions. For example, characteristic function f^(S) may be ANDed with query function ƒ_(R)({right arrow over (t)})= x ₁ x ₂ x ₃ . . . x ₂₄. Applying a logical AND operation to a number of operands may yield the logical AND of the operands. The search results may be one or more samples that have the requested values or may be the number of samples that have the requested values.

In certain embodiments, the number of samples that have the requested values may be determined. The number may be determined in any suitable manner. For example, Boolean function TH_(value)(x) may yield 1 when the number that is represented in the vector of binary variables x is larger than or equal to value. The number of instances where a BDD representing TH_(value)(x) yields 1 may be counted to determine the number of instances where x is larger than or equal to value.

The search results are reported at step 222. The search results may reported in any suitable manner. For example, the search results may be expressed as binary decision diagrams.

FIG. 4 illustrates an example of a method for annotating characteristic functions. The method may be performed by model engine 34. In the method, model sensor data is accessed at step 310. In certain embodiments, one or more sets of model samples of model sensor data 40 may be accessed. Each set comprises model samples for a corresponding annotation of one or more annotations.

Annotated model characteristic function f^(ai) is generated for an annotation a_(i) at step 314. Annotated model characteristic function f^(ai) represents model samples annotated with one or more annotations. Annotated model characteristic function f^(ai) may be used to identify measured samples that belong to the category indicated by the annotation.

Annotated model characteristic function f^(ai) may be generated in any suitable manner. In certain embodiments, each model sample of annotation a_(i) may be represented as a model minterm, and model characteristic function f^(ai) may be generated from the model minterms by, for example, applying a logical operation (such as a logical OR operation) to the minterms. Model characteristic function f^(ai) indicates whether a given minterm is a member of the model minterms.

In the embodiments, model characteristic function f^(ai) may be annotated to yield annotated model characteristic function f^(ai). Model characteristic function f^(ai) may be annotated in any suitable manner. In certain embodiments, a Boolean variable is used to represent annotation a_(i). A mathematical operation (such as the product operation) may be applied to the Boolean variable and the model characteristic function yield the annotated model characteristic function.

In an example scenario, time has a 32-bit resolution, and sensors have an 8-bit resolution. The kth sensor values [64,127] at time [0,31] may be annotated with the normal attribute as follows:

${f^{a_{normal}}\left( {\overset{\rightarrow}{t};s^{\overset{\rightarrow\;}{1}};\ldots\mspace{14mu};s^{\overset{\rightarrow}{k}}} \right)} = {\overset{\_}{t_{31}}\overset{\_}{t_{30}}\mspace{14mu}\ldots\mspace{14mu}\overset{\_}{t_{6}}\;\overset{\_}{t_{5}}\overset{\_}{s_{7}^{k}}s_{6}^{k}}$

There may be a next annotation a_(i+1) at step 316. If there is a next annotation the method returns to step 314 to generate a model characteristic function f^(ai+1) for next annotation a_(i+1). If there is no next annotation a_(i+1), the method proceeds to step 318.

General model characteristic function g is generated from annotated model characteristic functions f^(a) at step 318. General model characteristic function g may represent some or all sensor data 40. General model characteristic function g may be used to annotate samples of a given characteristic function, which is described in more detail below.

General model characteristic function g may be generated in any suitable manner. In certain embodiments, a logical operation (such as a logical OR operation) may be applied to annotated model characteristic functions f^(a) to yield general model characteristic function g:

${g\left( {\overset{\rightarrow}{a};\overset{\rightarrow}{t};s^{\overset{\rightarrow}{1}};\ldots\mspace{14mu};s^{\overset{\rightarrow}{k}}} \right)} = {V_{i}f^{a_{i}}}$

Characteristic function f^(S) representing samples of sensor data 40 is received at step 322. The samples are annotated using the general model characteristic function g at step 326. The samples may be annotated in any suitable manner. In certain embodiments, a mathematical operation (such as a product operation) may be applied to the characteristic function and the general model characteristic function to annotate the samples: ƒ^(Q)=ƒ^(S) ·g Annotated characteristic function g represents samples of characteristic function g annotated with annotations. Core operations may be performed on annotated characteristic function f^(Q). In certain embodiments, annotated characteristic function f^(Q) may be queried to identify samples that have a particular annotation. For example, a density query can provide information on the percentage of data points annotated as with a particular annotation. As another example, the time range of data points with a particular annotation can be computed.

The query may be performed in any suitable manner, such as a manner substantially similar to that described herein. For example, a query function representing a given annotation may be formulated. The query function and the annotated characteristic function may then be combined to identify the samples.

The results are reported at step 330. The results may be reported in any suitable manner. For example, the results may be reported through interface 20.

FIG. 5 illustrates an example of a method for determining whether Boolean functions (such as characteristic functions) are equivalent. The method may be performed by signature engine 36.

Signature engine 36 receives a first Boolean function and a second Boolean function at step 410.

The first Boolean function and the second Boolean function are transformed to a first arithmetic function and a second arithmetic function, respectively, at step 414. The Boolean functions may be transformed in any suitable manner. For example, the transformations may be performed according to one or more of the following rules: X AND Y→X×Y X OR Y→X+Y−X×Y NOT(X)→1−X X AND X (idempotence)→X×X=X; X ^(k) =X where → represents “is transformed to”, AND represents logical AND, OR represents logical OR, NOT represents logical negation, X AND X represents idempotence, x represents multiplication, + represents addition, and a superscript represents an exponent. For example, if Boolean function F=X OR Y, then the arithmetic function A[F]=X+Y−X×Y. In certain examples, if the finite integer field has a size p, the arithmetic is performed modulo p.

In certain cases, a hash code H may be determined for a logical combination of Boolean functions B1 and B2. Hash code H may be determined from an arithmetic combination of hash codes H1 and H2, where H1 is the hash code of Boolean function B1 and H2 is the hash code of Boolean function B2. For example, the theorem of orthogonality may be applied. If Boolean functions B1 and B2 do not overlap in time, then hash code H for B1 V B2=H1+H2=H.

The same input is provided to the first arithmetic function and the second arithmetic function to calculate a first hash code and a second hash code, respectively, at step 418. Any suitable input may be used. In certain embodiments, the input may be randomly generated integers. In the example, if input X=5, Y=7 is provided to arithmetic function A[F]=X+Y−X×Y, then hash code is A[F]=5+7−5×7=−23.

The first and second hash codes are compared at step 422. The first and second hash codes may be equal or not equal at step 426. Hash codes of equivalent functions are the same, and hash codes of different functions are probably different. If arithmetic expressions are evaluated in a finite integer field under randomization, then any distinct pair of 2² ^(n) Boolean functions almost always maps to distinct hash codes. The probability of error is n/(size-of-integer-field), where integer field Z_(p)={0,1, . . . , p−1} and p is prime. As prime p increases, the probability of error decreases and may be practically close to 0. Accordingly, a larger prime p may be selected to yield more accurate hash codes, and a smaller prime p may be selected to yield less accurate hash codes. In certain embodiments, hash codes may be repeatedly generated to improve accuracy. Error decreases exponentially after each run. After k runs, error e≦(n/p)^(k).

If the first hash code equals the second hash code at step 426, the method proceeds to step 430, where signature engine 36 designates the first Boolean function and the second Boolean function as equivalent. If the first hash code does not equal the second hash code, the method proceeds to step 434, where signature engine 36 designates the first Boolean function and the second Boolean function as not equivalent.

Results are reported at step 438. The results may be reported using interface 20.

Examples of the method may be used in any suitable application. As an example, hash codes may be used to verify communication of Boolean functions or BDDs over a communication link (wired and/or wireless) to a network node (such as a base station). A sending node may send Boolean functions and hash codes of the Boolean functions to a receiving node after every K blocks of data of the Boolean functions. The hash codes may be encrypted. Multiple hash codes may be sent or the same hash code may be sent multiple times.

The receiving node may calculate a hash code for a Boolean function and compare the calculated hash code with the hash code received with the Boolean function. If the hash codes are the same, the receiving node may determine that the Boolean function is valid, for example, has been properly received. Otherwise, the receiving node may determine that the Boolean function is not valid, for example, has not been properly received and may have been corrupted.

As another example, hash codes may be used to mark and later validate data stored as Boolean functions or BDDs. A hash code may be calculated for a Boolean function and may be stored with or separately from the Boolean function. At a later time, the Boolean function may be validated using the stored hash function. A new hash code may be calculated for the Boolean function and compared with the stored hash code. If the hash codes are the same, the Boolean function may be regarded as valid, such as uncorrupted. Otherwise, the Boolean function may be regarded as invalid, such as corrupted.

More accurate hash codes may be used to mark more important data, and less accurate hash codes may be used to mark less important data. Less accurate hash codes may be used if processing power is limited, such as for storage in mobile phones.

Modifications, additions, or omissions may be made to the systems and apparatuses disclosed herein without departing from the scope of the invention. The components of the systems and apparatuses may be integrated or separated. Moreover, the operations of the systems and apparatuses may be performed by more, fewer, or other components. For example, the operations of BDD generator 30 and query engine 32 may be performed by one component, or the operations of BDD generator 30 may be performed by more than one component. Additionally, operations of the systems and apparatuses may be performed using any suitable logic comprising software, hardware, and/or other logic. As used in this document, “each” refers to each member of a set or each member of a subset of a set.

Modifications, additions, or omissions may be made to the methods disclosed herein without departing from the scope of the invention. The methods may include more, fewer, or other steps. Additionally, steps may be performed in any suitable order.

A component of the systems and apparatuses disclosed herein may include an interface, logic, memory, and/or other suitable element. An interface receives input, sends output, processes the input and/or output, and/or performs other suitable operation. An interface may comprise hardware and/or software.

Logic performs the operations of the component, for example, executes instructions to generate output from input. Logic may include hardware, software, and/or other logic. Logic may be encoded in one or more tangible media and may perform operations when executed by a computer. Certain logic, such as a processor, may manage the operation of a component. Examples of a processor include one or more computers, one or more microprocessors, one or more applications, and/or other logic.

In particular embodiments, the operations of the embodiments may be performed by one or more computer readable media encoded with a computer program, software, computer executable instructions, and/or instructions capable of being executed by a computer. In particular embodiments, the operations of the embodiments may be performed by one or more computer readable media storing, embodied with, and/or encoded with a computer program and/or having a stored and/or an encoded computer program.

A memory stores information. A memory may comprise one or more non-transitory, tangible, computer-readable, and/or computer-executable storage media. Examples of memory include computer memory (for example, Random Access Memory (RAM) or Read Only Memory (ROM)), mass storage media (for example, a hard disk), removable storage media (for example, a Compact Disk (CD) or a Digital Video Disk (DVD)), database and/or network storage (for example, a server), and/or other computer-readable medium.

Components of the systems and apparatuses may be coupled by any suitable communication network. A communication network may comprise all or a portion of one or more of the following: a public switched telephone network (PSTN), a public or private data network, a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a local, regional, or global communication or computer network such as the Internet, a wireline or wireless network, an enterprise intranet, other suitable communication link, or any combination of any of the preceding.

Although this disclosure has been described in terms of certain embodiments, alterations and permutations of the embodiments will be apparent to those skilled in the art. Accordingly, the above description of the embodiments does not constrain this disclosure. Other changes, substitutions, and alterations are possible without departing from the spirit and scope of this disclosure, as defined by the following claims. 

What is claimed is:
 1. A computer-implemented method comprising: receiving a search query for a search of a plurality of samples of sensor measurement data taken by one or more sensors, the search query indicating one or more requested values of one or more data parameters of sensor measurement data, wherein each data value of the set of samples of the sensor data is expressed as a minterm to yield a set of minterms, each minterm within the set of minterms comprising a logical expression of one or more variables allocated to the data value of the sample of the sensor data, the plurality of samples represented by a samples binary decision diagram (BDD) indicating whether a given binary representation represents a sample of the plurality of samples, the samples BDD representing a characteristic function that is formulated by applying a logical operation to the minterms of the set of minterms to generate the samples BDD, wherein a BDD includes one or more rooted directed acyclic graphs representing a Boolean function and a plurality of nodes and a plurality of edges connecting the nodes thereby forming a plurality of paths, each path in the BDD representing a set of variable assignments setting the represented Boolean function; formulating a query BDD representing the one or more requested values of the one or more data parameters of sensor measurement data, wherein each requested value is expressed as a requested minterm to yield one or more requested minterms, the query BDD representing a query function that is formulated by applying a logical operation to the one or more requested minterms to generate the query BDD; and generating an annotated samples BDD representing an annotated characteristic function by applying a logical AND operation to the query BDD and the samples BDD, the annotated samples BDD representing one or more samples of the sensor measurement data that have one or more of the requested values of the one or more data parameters of sensor measurement data.
 2. The computer-implemented method of claim 1, a parameter of the one or more parameters representing a sensor measurement, a time, a temperature, or a location.
 3. The computer-implemented method of claim 1, the formulating the query BDD further comprising: expressing each requested value as a requested minterm to yield one or more requested minterms; and formulating a query BDD from the one or more requested minterms.
 4. The computer-implemented method of claim 1, further comprising: determining the number of samples that have the one or more requested values.
 5. The computer-implemented method of claim 1, the sensor measurement data comprising medical measurement data taken by one or more medical sensors.
 6. An apparatus comprising: one or more processors; and a memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to: receive a search query for a search of a plurality of samples of sensor measurement data taken by one or more sensors, the search query indicating one or more requested values of one or more data parameters of sensor measurement data, wherein each data value of the set of samples of the sensor data is expressed as a minterm to yield a set of minterms, each minterm within the set of minterms comprising a logical expression of one or more variables allocated to the data value of the sample of the sensor data, the plurality of samples represented by a samples binary decision diagram (BDD) indicating whether a given binary representation represents a sample of the plurality of samples, the samples BDD representing a characteristic function that is formulated by applying a logical operation to the minterms of the set of minterms to generate the samples BDD, wherein a BDD includes one or more rooted directed acyclic graphs representing a Boolean function and a plurality of nodes and a plurality of edges connecting the nodes thereby forming a plurality of paths, each path in the BDD representing a set of variable assignments setting the represented Boolean function; formulate a query BDD representing the one or more requested values of the one or more data parameters of sensor measurement data, wherein each requested value is expressed as a requested minterm to yield one or more requested minterms, the query BDD representing a query function that is formulated by applying a logical operation to the one or more requested minterms to generate the query BDD; and generate an annotated samples BDD representing an annotated characteristic function by applying a logical AND operation to the query BDD and the samples BDD, the annotated samples BDD representing one or more samples of the sensor measurement data that have one or more of the requested values of the one or more data parameters of sensor measurement data.
 7. The apparatus of claim 6, a parameter of the one or more parameters representing a sensor measurement, a time, a temperature, or a location.
 8. The apparatus of claim 6, the formulating the query BDD further comprising: expressing each requested value as a requested minterm to yield one or more requested minterms; and formulating a query BDD from the one or more requested minterms.
 9. The apparatus of claim 6, the one or more processors further configured to: determine the number of samples that have the one or more requested values.
 10. The apparatus of claim 6, the sensor measurement data comprising medical measurement data taken by one or more medical sensors.
 11. One or more non-transitory computer-readable media storing code, when executed by one or more processors, configured to: receive a search query for a search of a plurality of samples of sensor measurement data taken by one or more sensors, the search query indicating one or more requested values of one or more data parameters of sensor measurement data, wherein each data value of the set of samples of the sensor data is expressed as a minterm to yield a set of minterms, each minterm within the set of minterms comprising a logical expression of one or more variables allocated to the data value of the sample of the sensor data, the plurality of samples represented by a samples binary decision diagram (BDD) indicating whether a given binary representation represents a sample of the plurality of samples, the samples BDD representing a characteristic function that is formulated by applying a logical operation to the minterms of the set of minterms to generate the samples BDD, wherein a BDD includes one or more rooted directed acyclic graphs representing a Boolean function and a plurality of nodes and a plurality of edges connecting the nodes thereby forming a plurality of paths, each path in the BDD representing a set of variable assignments setting the represented Boolean function; formulate a query BDD representing the one or more requested values of the one or more data parameters of sensor measurement data, wherein each requested value is expressed as a requested minterm to yield one or more requested minterms, the query BDD representing a query function that is formulated by applying a logical operation to the one or more requested minterms to generate the query BDD; and generate an annotated samples BDD representing an annotated characteristic function by applying a logical AND operation to the query BDD and the samples BDD, the annotated samples BDD representing one or more samples of the sensor measurement data that have one or more of the requested values of the one or more data parameters of sensor measurement data.
 12. The media of claim 11, a parameter of the one or more parameters representing a sensor measurement, a time, a temperature, or a location.
 13. The media of claim 11, the formulating the query BDD further comprising: expressing each requested value as a requested minterm to yield one or more requested minterms; and formulating a query BDD from the one or more requested minterms.
 14. The media of claim 11, the code further configured to: determine the number of samples that have the one or more requested values.
 15. The media of claim 11, the sensor measurement data comprising medical measurement data taken by one or more medical sensors.
 16. The computer-implemented method of claim 1, further comprising: accessing a set of samples of sensor data recording a plurality of sensor measurements taken by one or more sensors.
 17. The computer-implemented method of claim 16, further comprising: representing each data value of the set of samples of the sensor data as a minterm to yield a set of minterms, each minterm within the set of minterms comprising a logical expression of one or more variables allocated to the data value of the sample of the sensor data.
 18. The computer-implemented method of claim 17, further comprising: generating a samples binary decision diagram (BDD) from the set of samples by applying a logical operation to the minterms of the set of minterms to generate the samples BDD, the samples BDD indicating whether a given sample is a member of the set of samples. 